from django.http import HttpResponse
from django.shortcuts import render

# Create your views here.

def index(request): # 视图函数默认需要由request函数
    return HttpResponse('Hello Django!')

def user_list(request):
    return HttpResponse('def user_list(request)')

def user_add(request):
    return HttpResponse('def user_add(request):')

def watch_html(request):
    return render(request, 'hello.html')

def watch_picture(request):
    return render(request, 'picture.html')